import { defineStore } from "pinia";
import piniaPersistConfig from "@/stores/helper/persist";
export const useTextStore = defineStore({
  id: "text",
  state: ():any => ({
    userRole: 1,
  }),
  getters: {
    getUserRole: (state) => state.userRole,
  },
  actions: {
    setUserRole(role: number) {
      this.userRole = role;
    },
  },
  persist: piniaPersistConfig(`text`),
});
